-- GENERATED SPELL FOR [Mate of Magmothregar] --


function spell0_25432(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(50420,pUnit)
pUnit:RegisterEvent('Sorts_25432', 567, 1)
end

function Sorts_25432(pUnit, Event)
local choix_sorts_25432 = math.random(0, 0)
if choix_sorts_25432 == 0 then
pUnit:RegisterEvent('spell0_25432', 1, 1)
end
end

function mob25432_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25432', math.random(1500, 3000), 1)
end

function mob25432_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25432_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25432_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25432, 1, 'mob25432_Action')
RegisterUnitEvent(25432, 2, 'mob25432_Leave')
RegisterUnitEvent(25432, 3, 'mob25432_Kill')
RegisterUnitEvent(25432, 4, 'mob25432_Die')
